﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsDoorType _iCsDoorType = null;

        public static ICsDoorType CreateCsDoorType()
        {
            if (_iCsDoorType == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsDoorType_Sys";
                _iCsDoorType = (ICsDoorType)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsDoorType;
        }
    }



    public interface ICsDoorType
    {
        bool UpdateDoorTypeTable(DataTable dt);
        /// <summary>
        /// 更新对接系统的户型数据
        /// </summary>
        /// <param name="organID">对接系统的OrganID</param>
        /// <returns></returns>
        DataTable GetDoorTypeTable(String organID);

        DataTable GetDoorTypeNotNullTable(String organID);

        String GetIdentitiferByID(String ID);

        DataTable GetALLDoorTypeTable();


        DataTable GetDoorTypeData(String InID);
    }
}
